const router = require('koa-router')()
const Controller = require('../controllers/hanziRadicalController')

router.prefix('/radical')

router.get('/', Controller.getAllHanziRadicals)
router.get('/:id', Controller.getHanziRadicalById)
router.post('/', Controller.createHanziRadical)
router.put('/:id', Controller.updateHanziRadical)
router.delete('/:id', Controller.deleteHanziRadical)

module.exports = router